// mobile bind
// ============

define(['zepto', 'sui', 'submitForm'], function($){
  return {
    init: function(data) {
      this.courseRoundId = data.courseRoundId;
      
      this.submit()
    },
    
    submit : function() {
      var that = this;

      $(".save-button").on("click", function() {
        /*var summary = $('textarea[name="summary"]').val().trim();
        var wordsToStudent = $('textarea[name="wordsToStudent"]').val().trim();
        
        if(!summary) {
          $.toast("请输入总结");
          return false;
        } else if(!wordsToStudent) {
          $.toast("请输入对学员想说的话");
          return false;
        }*/
        
    	  $(".submit-btn").trigger("click");
      });
      
      $("form").submitform({
          successUrl: $(".fs-header-small a").attr("href")
      });
    }
  }
})

